package com.financing.wap.dao.impl;

import java.util.List;
import java.util.Map;
import com.financing.wap.dao.impl.BaseDaoImpl;
import com.financing.wap.dao.IFpFundAwkwardnessDao;
import com.financing.wap.dto.DiscussDTO;
import com.financing.wap.dto.FpFundAwkwardnessDTO;
import com.financing.wap.util.SqlName;
import java.sql.SQLException;
import java.util.Collections;

import org.springframework.stereotype.Repository;

/**
 * @Description:实现类
 * @author caojiayao
 * @version 1.0
 * @created 
 */
@Repository("fpFundAwkwardnessDaoImpl")
public class FpFundAwkwardnessDaoImpl extends BaseDaoImpl implements IFpFundAwkwardnessDao {
	
	@Override
	public FpFundAwkwardnessDTO getFpFundAwkwardness(FpFundAwkwardnessDTO fpFundAwkwardness) {
		return (FpFundAwkwardnessDTO)this.getSqlMapClientTemplate().queryForObject(SqlName.fpFundAwkwardness,fpFundAwkwardness);
	}
	
	
	@Override
	public Integer insertFpFundAwkwardness(FpFundAwkwardnessDTO fpFundAwkwardness) {
		return (Integer)this.getSqlMapClientTemplate().insert(SqlName.insertFpFundAwkwardness,fpFundAwkwardness);
	}

	
	@Override
	public Integer updateFpFundAwkwardness(FpFundAwkwardnessDTO fpFundAwkwardness) {
		return (Integer) this.getSqlMapClientTemplate().update(SqlName.updateFpFundAwkwardness, fpFundAwkwardness);
	}
	
	@Override
	public Integer delFpFundAwkwardness(Integer id) {
		return (Integer) this.getSqlMapClientTemplate().delete(SqlName.delFpFundAwkwardness, id);
	}
	
	@Override
	public List<FpFundAwkwardnessDTO> listFpFundAwkwardness(FpFundAwkwardnessDTO dto) {
		return (List<FpFundAwkwardnessDTO>)this.getSqlMapClientTemplate().queryForList(SqlName.listFpFundAwkwardness, dto);
	}
	
	public Integer countFpFundAwkwardness(FpFundAwkwardnessDTO dto) {
		return (Integer)this.getSqlMapClientTemplate().queryForObject(SqlName.countFpFundAwkwardness, dto);
	}
	
	@Override
	public Class<FpFundAwkwardnessDTO> getEntityClass() {
		return FpFundAwkwardnessDTO.class;
	}
	
	@Override
	public List<FpFundAwkwardnessDTO> listFpFundAwkwardnessByFundId(FpFundAwkwardnessDTO dto) {
		return (List<FpFundAwkwardnessDTO>)this.getSqlMapClientTemplate().queryForList(SqlName.listFpFundAwkwardnessByFundId, dto);
	}

}
